package fanzone;

import java.io.Serializable;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;

public class RemoteResourceInfo implements ResourceInfo, Serializable
{
	private static final long serialVersionUID = 1L;
	
	URL url;
	List<String> urls;

	public RemoteResourceInfo( URL url) {
		this.url = url;
		urls = new ArrayList<String>();
		urls.add( url.toExternalForm());
	}

	public String getName() {
		return url.getFile();
	}
	
	public boolean isLocal() {
		return false;
	}

	public List<String> getURL() {
		return urls;
	}
	public String getID() {
		return url.toExternalForm();
	}

	@Override
	public String getHTTPURL() {
		return url.toExternalForm();
	}
}
